<?php

namespace app\model;

use App\Models\GameEngine;
use App\Models\GameType;
use Illuminate\Database\Eloquent\Relations\BelongsTo;

class GameOfficialResources extends Base
{

    protected $table = "game_official_resources";


    protected $connection;


    public function __construct(array $attributes = [])
    {
        parent::__construct($attributes);
        $this->connection = config('database.connections.biqi_game.database');
    }


    public function TypeBind(): BelongsTo
    {
        return $this->belongsTo(\app\model\GameType::class, 'game_type', 'ulid');
    }

    public function EngineBind(): BelongsTo
    {
        return $this->belongsTo(\app\model\GameEngine::class, 'game_engine', 'ulid');
    }

}